﻿using System;
using NUnit.Framework;
using YGD.Generic;

namespace UnitTest
{
    [TestFixture]
    public class unittest_DataStorage
    {
        [Test]
        public void TestSaveAndLoad()
        {
            var ds = new DataStorage();
            var expectedValue = DateTime.Now;

            ds.Save(expectedValue, "superwolf", "config");

            var actualValue = ds.Load<DateTime>("superwolf","config");

            Assert.AreEqual(expectedValue, actualValue);

        }
    }
}
